package svc

import (
	"fmt"
	MetaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"kubeUser/internal/pkg/client"
)



// 获取get
func getSvc(SVCName string)  {
	svc ,err := client.KubeManger.ClientSet.CoreV1().Services("kube-system").Get(SVCName,MetaV1.GetOptions{})
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(svc.Spec.Ports)
}
